package practice08;

public class Klass {
    private Integer number;
    private Student leader;
    public Klass(int i) {
        this.number=i;
    }

    public Student getLeader() {
        return leader;
    }
    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public String getDisplayName() {
        return "Class "+getNumber();
    }
    public String assignLeader(Student student){
        this.leader = student;
        return leader.getName();
    }
}
